﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using WCFEventService;

namespace WCFEventServiceClient
{
    class EventServiceClient : DuplexClientBase<IMyContract>, IMyContract
    {
        public EventServiceClient(InstanceContext eventCntx)
            : base(eventCntx)
        {

        }

        public void DoSomethingAndFireEvent()
        {
            base.Channel.DoSomethingAndFireEvent();
        }

        public void SubscribeEvent()
        {
            base.Channel.SubscribeEvent();
        }

    }
}
